package ls.jpa.chapterB.service;

import ls.jpa.chapterB.domain.Employee;
import ls.jpa.chapterB.repository.EmployeeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author Barudisshu
 */
@Service
public class EmployeeService {

    @Autowired
    @Qualifier("emp")
    private EmployeeDao employeeDao;

    public Employee save(Employee employee){
        return employeeDao.save(employee);
    }
}
